﻿using System;
using Microsoft.WindowsServerSolutions.Administration.ObjectModel;
using System.Drawing;
using Serviio.API;

namespace Serviio.WHS2011
{
    [ContainsCustomControl] // Required attribute for custom tabs
    public class TopLevelTabPageProvider : PageProvider
    {
        public TopLevelTabPageProvider()
            : base(new Guid("3E5C3805-FE12-47E4-BC96-12705D5A429F"),
                   "Serviio Media Server",
                   "Serviio Transcoding Media Server") { }

        protected override Icon CreateImage()
        {
            return Icon.FromHandle(Properties.Resources.ServiioLogo32.GetHicon());
        }

        protected override object CreatePages()
        {
            return (new object[] {
                new TabContainerTabPage()
            });
        }
    }
}